<template>
  <div>
    <div class="box">
      <ul class="box-inner">
        <li>随手拍总数:{{ result.total }}</li>
        <li>今日上传数量:{{ result.today }}</li>
        <li>昨日上传数量:{{ result.yesterday }}</li>
        <li>近7日上传数量:{{ result.week }}</li>
        <li>上传用户:{{ result.accountTotal }}</li>
      </ul>
    </div>
  </div>
</template>

<script>
import { querySnapshotSummary } from "@/api/anyPhoto";
export default {
  data() {
    return {
      result: {},
    };
  },
  methods: {
    async query() {
      let { returnObj } = await querySnapshotSummary();
      this.result = returnObj;
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  position: relative;
  width: 100%;
  height: 400px;
}
.box-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.box-inner > li {
  overflow: hidden;
  flex: 0 0 33.33%;
  text-align: center;
  width: 33%;
  height: 200px;
  line-height: 200px;
  text-align: center;
  box-shadow: 0 0 1px #ccc;
}
</style>
